public class Ex4_17{
	public static void main(String[] args){
		for (int i = 1; i <= 7; i++){
			int j;
			for (j = 1; j <= 7-i; j++)
				System.out.printf("%-2c", ' ');
			for (j = i; j > 1; j--)
				System.out.printf("%-2d", j);
			for (; j <= i; j++)
				System.out.printf("%-2d", j);
			System.out.printf("\n");
		}
	}
}